<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>chi tiết laptop</title>


<link href="../style/cs1.css" rel="stylesheet" type="text/css" />
</head>

<body>
<?php
$idlaptop = $_GET["idlaptop"];
include("config/config.php");
$lenh = "select hinh,tenlaptop,tenhanglaptop,tenloai,concat(soluong,' Cái')as soluong,concat(format(dongia,0),' VNĐ')as dongia,mota from laptop,hanglaptop,loailaptop where laptop.mahanglaptop = hanglaptop.mahanglaptop and laptop.maloailaptop=loailaptop.maloailaptop and malaptop='$idlaptop'";
$kq = mysql_query($lenh);
?>
<div class="chitiet">
<?php
while($row = mysql_fetch_array($kq))
{
	?>
<font color="#000000"><strong>Tên laptop</strong>:</font><font color="#666666"><?php echo $row[1]; ?></font><br/>
<font color="#000000"><strong>Tên hãng laptop:</strong></font><font color="#666666"><?php echo $row[2]; ?></font><br/>
<font color="#000000"><strong>Tên loại laptop:</strong></font><font color="#666666"><?php echo $row[3]; ?></font><br/>
<font color="#000000"><strong>Mô tả:</strong></font><font color="#666666"><?php echo $row[6]; ?></font><br/>
<font color="#000000"><strong>Số lượng:</strong></font><font color="#666666"><?php echo $row[4]; ?></font><br/>
<font color="#000000"><strong>Đơn giá:</strong></font><font color="#666666"><?php echo $row[5]; ?></font><br/>
<img src="laptop/<?php echo $row[0]; ?>" width="200" height="150" class="hinhspchitiet"/><br/>
<?php
}
?>
</div>
<p align="center">
<a href="javascript:history.go(-1)">Back</a>
</p>
</body>
</html>